package com.my.zidingyikongjian.view.one;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.View;

/**
 * 项目名称：点
 * 创建人：
 * 创建时间：2018/7/9 15:26
 */

public class PointView extends View {

    public PointView(Context context) {
        super(context);
    }

    @Override
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        Paint paint = new Paint();
        paint.setStrokeWidth(15); // 画笔大小
        paint.setStyle(Paint.Style.FILL); // 画笔形状
        paint.setColor(Color.RED);

//        canvas.drawRGB(255, 255, 255);
        canvas.drawPoint(100, 100, paint);
    }
}
